/**
 * 
 */
package steffens.java.gui.defaultui;

import java.awt.Component;
import java.awt.Dimension;
import java.awt.Dialog;

import javax.swing.JDialog;

import steffens.java.gui.defaultui.general.DefaultWindow;

/**
 * @author Steffen Baumann
 * @version 1.0 
 *
 */
public class DefaultDialog extends DefaultWindow<Dialog> {

	public DefaultDialog(String tilte, Dimension size, boolean centered) {
		super(new JDialog(), size, centered);
		getWindow().setTitle(tilte);
		
		
	}
	
	
	
	public void addContent(Component comp){
		
	}
	
	@Override
	public Dialog getWindow() {
		return super.getWindow();
	}

	@Override
	public void setVisible(boolean visible) {
		getWindow().setVisible(true);
		getWindow().setModal(true);
	}
	
	
}
